home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Novinky / grada / Aplikace / Otazky.dxr / 00100_Ovládání zpìt - otázky.ls next >
Encoding:
Text File  |  2002-04-14  |  703 b   |  34 lines

  1. property Tlacitko
  2. global Posledni_menu
  3.  
  4. on beginSprite me
  5.   set the visible of sprite the spriteNum of me to 1
  6. end
  7.  
  8. on endSprite me
  9. end
  10.  
  11. on mouseEnter me
  12.   puppetSound(1, "Najezd")
  13.   set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
  14.   set Tlacitko to the castNum of sprite the spriteNum of me
  15.   if Tlacitko > 0 then
  16.     set the member of sprite the spriteNum of me to member (Tlacitko + 1)
  17.   end if
  18. end
  19.  
  20. on mouseLeave me
  21.   set the cursor of sprite the spriteNum of me to -1
  22.   if Tlacitko > 0 then
  23.     set the member of sprite the spriteNum of me to member Tlacitko
  24.   end if
  25. end
  26.  
  27. on mouseDown me
  28.   puppetSound(1, "Klik")
  29. end
  30.  
  31. on mouseUp me
  32.   go(label(Posledni_menu))
  33. end
  34.